<?php
    session_start();
    if(!isset($_SESSION['usuario'])){
            header('location:../html/login.html');
         }
         
         echo '<center>
                    <title>Solicitudes Deteccion de Necesidades</title>
                    <table>
                        <tr>
                            <td>';
                         include_once 'menu.php';
                        echo"</td>
                        </tr>
                    </table>";
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        
        <!--Librerias Para La Creacion De Autocomple y Calendario-->
        <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="../js/jquery-ui-1.8.4.custom.min.js"></script>
        <link type="text/css" rel="stylesheet" href="../css/jquery-ui-1.8.4.custom.css" />
        <link type="text/css" rel="stylesheet" href="../css/estilo.css" />
        
        <!-- LIBRERIAS JQUERY PARA LA CREACION DE LAS ALERTAS -->
        <script type="text/javascript" src="../../Ginecobstetricia/vista/js/alertify.js"></script>
        <link rel="stylesheet" href="../../Ginecobstetricia/vista/css/alertify.core.css" />
        <link rel="stylesheet" href="../../Ginecobstetricia/vista/css/alertify.default.css" />
        
        
        <style>
            
            label,input,button,select,textarea{font-size:14px;font-weight:normal;line-height:20px}input,button,select,textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}label{display:block;margin-bottom:5px}select,textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],.uneditable-input{display:inline-block;height:28px;padding:4px 6px;margin-bottom:10px;font-size:14px;line-height:20px;color:#555;vertical-align:middle;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}input,textarea,.uneditable-input{width:250px}textarea{height:auto}textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],.uneditable-input{background-color:#fff;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}textarea:focus,input[type="text"]:focus,input[type="password"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="time"]:focus,input[type="week"]:focus,input[type="number"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="color"]:focus,.uneditable-input:focus{border-color:rgba(82,168,236,0.8);outline:0;outline:thin dotted \9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6)}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;*margin-top:0;line-height:normal}input[type="file"],input[type="image"],input[type="submit"],input[type="reset"],input[type="button"],input[type="radio"],input[type="checkbox"]{width:auto}select,input[type="file"]{height:30px;*margin-top:4px;line-height:30px}select{width:250px;background-color:#fff;border:1px solid #ccc}select[multiple],select[size]{height:auto}select:focus,input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.uneditable-input,.uneditable-textarea{color:#999;cursor:not-allowed;background-color:#fcfcfc;border-color:#ccc;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);box-shadow:inset 0 1px 2px rgba(0,0,0,0.025)}.uneditable-input{overflow:hidden;white-space:nowrap}.uneditable-textarea{width:auto;height:auto}input:-moz-placeholder,textarea:-moz-placeholder{color:#999}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#999}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#999}.radio,.checkbox{min-height:20px;padding-left:20px}.radio input[type="radio"],.checkbox input[type="checkbox"]{float:left;margin-left:-20px}.controls>.radio:first-child,.controls>.checkbox:first-child{padding-top:5px}.radio.inline,.checkbox.inline{display:inline-block;padding-top:5px;margin-bottom:0;vertical-align:middle}.radio.inline+.radio.inline,.checkbox.inline+.checkbox.inline{margin-left:10px}.input-mini{width:60px}.input-small{width:90px}.input-medium{width:150px}.input-large{width:210px}.input-xlarge{width:270px}.input-xxlarge{width:530px}input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input[class*="span"],.row-fluid input[class*="span"],.row-fluid select[class*="span"],.row-fluid textarea[class*="span"],.row-fluid .uneditable-input[class*="span"]{float:none;margin-left:0}.input-append input[class*="span"],.input-append .uneditable-input[class*="span"],.input-prepend input[class*="span"],.input-prepend .uneditable-input[class*="span"],.row-fluid input[class*="span"],.row-fluid select[class*="span"],.row-fluid textarea[class*="span"],.row-fluid .uneditable-input[class*="span"],.row-fluid .input-prepend [class*="span"],.row-fluid .input-append [class*="span"]{display:inline-block}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:926px}input.span11,textarea.span11,.uneditable-input.span11{width:846px}input.span10,textarea.span10,.uneditable-input.span10{width:766px}input.span9,textarea.span9,.uneditable-input.span9{width:686px}input.span8,textarea.span8,.uneditable-input.span8{width:606px}input.span7,textarea.span7,.uneditable-input.span7{width:526px}input.span6,textarea.span6,.uneditable-input.span6{width:446px}input.span5,textarea.span5,.uneditable-input.span5{width:366px}input.span4,textarea.span4,.uneditable-input.span4{width:286px}input.span3,textarea.span3,.uneditable-input.span3{width:206px}input.span2,textarea.span2,.uneditable-input.span2{width:126px}input.span1,textarea.span1,.uneditable-input.span1{width:46px}.controls-row{*zoom:1}.controls-row:before,.controls-row:after{display:table;line-height:0;content:""}.controls-row:after{clear:both}.controls-row [class*="span"],.row-fluid .controls-row [class*="span"]{float:left}.controls-row .checkbox[class*="span"],.controls-row .radio[class*="span"]{padding-top:5px}input[disabled],select[disabled],textarea[disabled],input[readonly],select[readonly],textarea[readonly]{cursor:not-allowed;background-color:#eee}input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"][readonly],input[type="checkbox"][readonly]{background-color:transparent}.control-group.warning .control-label,.control-group.warning .help-block,.control-group.warning .help-inline{color:#c09853}.control-group.warning .checkbox,.control-group.warning .radio,.control-group.warning input,.control-group.warning select,.control-group.warning textarea{color:#c09853}.control-group.warning input,.control-group.warning select,.control-group.warning textarea{border-color:#c09853;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.warning input:focus,.control-group.warning select:focus,.control-group.warning textarea:focus{border-color:#a47e3c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e}.control-group.warning .input-prepend .add-on,.control-group.warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853}
            
            #tseguimiento{
                font-size: 90%;overflow:hidden;border:1px solid #d3d3d3;background:white;width:100%;height: 65%;margin:0% auto 0;-moz-border-radius:8px; /* FF1+ */-webkit-border-radius:8px; /* Saf3-4 */border-radius:8px;-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
               
            }
            #tseguimiento2{
                width: 100%;height: 100%;font-size: 80%;padding: 5px 5px 5px 5px ;overflow:hidden;border:1px solid #d3d3d3;background:#fefefe;margin:-5% auto 0 0;-moz-border-radius:8px; /* FF1+ */-webkit-border-radius:8px; /* Saf3-4 */border-radius:8px;-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
               
            }
            #tseguimiento3{
                font-size: 80%;padding: 5px 5px 5px 5px ;overflow:hidden;border:1px solid #d3d3d3;background:#fefefe;width:100%;height: 100%;margin:-1% auto 0 0;-moz-border-radius:8px; /* FF1+ */-webkit-border-radius:8px; /* Saf3-4 */border-radius:8px;-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
               
            }
            #titulo{
                 height: 10%;text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;
            }
            
            #filas{
                cursor:pointer;padding:10px 10px 10px; text-align:left;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));
                
            }
           
            #tablaSeg{
                height:300px;
                width:100%;
                overflow-y:scroll;
            }
             .white {
                border-radius: 5px;
                color: #606060;
                border: solid 1px #b7b7b7;
                background: #fff;
                background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
                background: -moz-linear-gradient(top,  #fff,  #ededed);
                filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
                padding: 3px 3px 3px;
                font-size: 80%;
                margin-top: -5px;
            }
            .white:hover {
                background: #ededed;
                background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
                background: -moz-linear-gradient(top,  #fff,  #dcdcdc);
                filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
            }
            .white:active {
                color: #999;
                background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
                background: -moz-linear-gradient(top,  #ededed,  #fff);
                filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
            }
            
            
             /*Prueba Nuevo formulario*/
            

            body {
              font: 13px/20px 'Lucida Grande', Tahoma, Verdana, sans-serif;
              color: #404040;
              /*background-image: url(../imagen/fondo3.jpg);*/
            }

            .container {
              margin: 20px auto;
              width: 90%;
            }

            .formulario {
              position: relative;
              margin: 0 auto;
              margin-top: -30px;
              padding: 10px 10px 10px;
              width: auto;
              background: white;
              border-radius: 3px;
              -webkit-box-shadow: 0 0 200px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
              box-shadow: 0 0 200px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
            }
            .formulario:before {
              content: '';
              position: absolute;
              top: -8px;
              right: -8px;
              bottom: -8px;
              left: -8px;
              z-index: -1;
              background: rgba(0, 0, 0, 0.08);
              border-radius: 4px;
            }
            .formulario h1 {
              line-height: 40px;
              font-size: 15px;
              font-weight: bold;
              color: #555;
              text-align: center;
              text-shadow: 0 1px white;
              background: #f3f3f3;
              border-bottom: 1px solid #cfcfcf;
              border-radius: 3px 3px 0 0;
              background-image: -webkit-linear-gradient(top, whiteffd, #eef2f5);
              background-image: -moz-linear-gradient(top, whiteffd, #eef2f5);
              background-image: -o-linear-gradient(top, whiteffd, #eef2f5);
              background-image: linear-gradient(to bottom, whiteffd, #eef2f5);
              -webkit-box-shadow: 0 1px whitesmoke;
              box-shadow: 0 1px whitesmoke;
            }
            .formulario p {
              margin: 20px 0 0;
            }
            .formulario p:first-child {
              margin-top: 0;
            }
            .formulario p.remember_me {
              float: left;
              line-height: 31px;
            }
            .formulario p.remember_me label {
              font-size: 12px;
              color: #777;
              cursor: pointer;
            }
            .formulario p.remember_me input {
              position: relative;
              bottom: 1px;
              margin-right: 4px;
              vertical-align: middle;
            }
            .formulario p.submit {
              text-align: right;
            }

            .formulario-help {
              margin: 20px 0;
              font-size: 11px;
              color: white;
              text-align: center;
              text-shadow: 0 1px #2a85a1;
            }
            .formulario-help a {
              color: #cce7fa;
              text-decoration: none;
            }
            .formulario-help a:hover {
              text-decoration: underline;
            }

            :-moz-placeholder {
              color: #c9c9c9 !important;
              font-size: 13px;
            }

            ::-webkit-input-placeholder {
              color: #ccc;
              font-size: 13px;
            }

            input {
              font-family: 'Lucida Grande', Tahoma, Verdana, sans-serif;
              font-size: 14px;
            }
            
            .white_content {
                display: none;
                position: absolute;
                top:20%;
                left: 20%;
                width: 60%;
                height: 55%;
                padding: 1%;
                z-index:1002;
               /* overflow: auto;*/
                background-color: white;
                border-radius: 10px;
            }
            
            .VentanaNecesidad {
                display: none;
                position: absolute;
                top:20%;
                left: 20%;
                width: 60%;
                height: 65%;
                padding: 1%;
                z-index:1002;
               /* overflow: auto;*/
                background-color: white;
                border-radius: 10px;
            }
            
            .black_overlay{
                display: none;
                position: absolute;
                top: 0%;
                left: 0%;
                width: 100%;
                height: 150%;
                background-color: black;
                z-index:1001;
                -moz-opacity: 0.8;
                opacity:.80;
                filter: alpha(opacity=80);
            }
            #miTabla tr:nth-child(odd) {
                background-color: #FFFFFF;
                
             }

             #miTabla tr:nth-child(even) {
                background-color: #DAEAFF;
                
             }
             /*Fin Formulario*/
            
            
        </style>
        <script>
            function calendario() {
                /*funcion para invocar el funcionamiento de el calendario*/
                    $( "#fecha1" ).datepicker({ 
                     autoSize: true,
                     dayNames: ['Domingo', 'Lunes', 'Martes', 'Mi?rcoles', 'Jueves', 'Viernes', 'S?bado'],
                     dayNamesMin: ['Dom', 'Lu', 'Ma', 'Mi', 'Je', 'Vi', 'Sa'],
                     firstDay: 1,
                     monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
                     monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic'],
                     dateFormat: 'dd-mm-yy',
                     changeMonth: true,
                     changeYear: true,
                     yearRange: "-90:+0"

                    });
            }
            function calendario2() {
                /*funcion para invocar el funcionamiento de el calendario*/
                    $( "#fecha2" ).datepicker({ 
                     autoSize: true,
                     dayNames: ['Domingo', 'Lunes', 'Martes', 'Mi?rcoles', 'Jueves', 'Viernes', 'S?bado'],
                     dayNamesMin: ['Dom', 'Lu', 'Ma', 'Mi', 'Je', 'Vi', 'Sa'],
                     firstDay: 1,
                     monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
                     monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic'],
                     dateFormat: 'dd-mm-yy',
                     changeMonth: true,
                     changeYear: true,
                     yearRange: "-90:+0"

                    });
            }
            function regis(est){
                var estado = est;
                document.getElementById("estados").value=estado;
                $.ajax({
                    type: "POST",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/sql/datosR.php",
                    data: {estado:estado},
                    success: tabla,
                    timeout: 4000
                });
            }
            
            function tabla(datos){
                rpt = $.parseJSON(datos);
                datos = $("#tablaSeg");
                var resp = "";
                resp += "<table style='height:10%;font-size: 95%;overflow:hidden;border:1px solid #d3d3d3;background:#fefefe;width:100%;-moz-border-radius:5px; /* FF1+ */-webkit-border-radius:5px; /* Saf3-4 */border-radius:5px;-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);'>\
                            <tr>\
                                <td colspan='9' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Listado de Solicitudes\
                                </td>\
                            <tr>\
                            <tr>\
                                <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    \
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Codigo\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Fecha\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Registrado por\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Servicio\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Tipo de Necesidad\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Estado Solicitud\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                   Asignado a\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                   Mecanismo Deteccion\
                                 </td>\
                             </tr>";
                for(res in rpt){
                    
                   var estad = rpt[res].dnsestado;
                   if(estad == "1"){
                       var estado = "Registrado";
                   }else if(estad == "2"){
                       estado = "Asignado";
                   }else if(estad == "3"){
                       estado = "En Tramite";
                   }else if(estad == "4"){
                       estado = "Con Respuesta";
                   }else if(estad == "5"){
                       estado = "Verificado";
                   }else if(estad == "6"){
                       estado = "Aceptado";
                   }else if(estad == "7"){
                       estado = "Derrogado";
                   }else if(estad == "8"){
                       estado = "En Tramite por el Cliente";
                   }else{
                       estado = "";
                   }
                   
                   resp += ("<tr>\
                                <td title='Ver solicitud' onclick='visible("+ rpt[res].dnsoid +");' style='cursor:pointer;padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    <img src='../imagen/agregr.png' width='13' height='13' alt='agregr'/>\
                                    <input type='hidden' id='oidsol' name='txtos' value='"+ rpt[res].dnsoid +"' />\
                                </td>\
                                <td title='Codigo solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].dnsoid +"\
                                </td>\
                                <td title='Fecha solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].dnfecha +"\
                                </td>\
                                <td title='Usuario que hace la solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].nombres +"\
                                </td>\
                                <td title='Servicio' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].GDPNOMBRE +"\
                                </td>\
                                <td title='Tipo de Necesidad' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].tipnombre +"\
                                </td>\
                                <td title='Estado' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ estado +"\
                                </td>\
                        <td title='Usuario Asignado' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].responsable +"\
                                </td>\
                                <td title='Estado' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].mecnombre +"\
                                </td>\
                             </tr>");
                }
                resp += "</table>";
                datos.text("");
                datos.append(resp);
                buscar();
            }
            
            function verDetalle(oidsol){
                var oids = oidsol;
                window.open("detalleSol.php?oids=" + oids + "&est=2","","width=1200,height=500,top=75,left=75,screen.width-350,scrollbars=yes");
                
            }
            
            
            function regisusu(){
                var usuario = document.getElementById("usuoid").value;
                $.ajax({
                    type: "POST",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/sql/datosRusu.php",
                    data: {usuario:usuario},
                    success: tablaUsu,
                    timeout: 4000
                });
            }
            
            function tablaUsu(datosusu){
                rpt = $.parseJSON(datosusu);
                datosusu = $("#tablaSeg");
                var resp = "";
                resp += "<table style='height:10%;font-size: 95%;overflow:hidden;border:1px solid #d3d3d3;background:#fefefe;width:100%;-moz-border-radius:5px; /* FF1+ */-webkit-border-radius:5px; /* Saf3-4 */border-radius:5px;-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);'>\
                            <tr>\
                                <td colspan='7' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Listado de Solicitudes\
                                </td>\
                            <tr>\
                            <tr>\
                                <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    \
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Codigo\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Fecha\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Registrado por\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Servicio\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Tipo de Necesidad\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Estado Solicitud\
                                 </td>\
                             </tr>";
                for(res in rpt){
                    
                   var estad = rpt[res].dnsestado;
                   if(estad == "1"){
                       var estado = "Registrado";
                   }else if(estad == "2"){
                       estado = "Asignado";
                   }else if(estad == "3"){
                       estado = "En Tramite";
                   }else if(estad == "4"){
                       estado = "Con Respuesta";
                   }else if(estad == "5"){
                       estado = "Verificado";
                   }else if(estad == "6"){
                       estado = "Aceptado";
                   }else if(estad == "7"){
                       estado = "Derrogado";
                   }else if(estad == "2"){
                       estado = "Derrogado";
                   }else if(estad == "8"){
                       estado = "En Tramite por erl Cliente";
                   }else{
                       estado = "";
                   }
                   resp += ("<tr>\
                                <td title='Ver solicitud' onclick='visible("+ rpt[res].dnsoid +");' style='cursor:pointer;padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    <img src='../imagen/agregr.png' width='13' height='13' alt='agregr'/>\
                                    <input type='hidden' id='oidsol' name='txtos' value='"+ rpt[res].dnsoid +"' />\
                                </td>\
                                <td title='Codigo solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].dnsoid +"\
                                </td>\
                                <td title='Fecha solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].dnfecha +"\
                                </td>\
                                <td title='Usuario que hace la solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].nombres +"\
                                </td>\
                                <td title='Servicio' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].GDPNOMBRE +"\
                                </td>\
                                <td title='Tipo de Necesidad' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].tipnombre +"\
                                </td>\
                                <td title='Estado' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ estado +"\
                                </td>\
                             </tr>");
                }
                resp += "</table>";
                datosusu .text("");
                datosusu.append(resp);
               // buscar();
            }
            
            
            function beentrada(){
                $.ajax({
                    type: "POST",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/sql/usuasig.php",
                    success: tausuasig,
                    timeout: 4000
                });
                
            }
            
            
            function tausuasig(be){
                rpt = $.parseJSON(be);
                var res = "";
                
                for(b in rpt){
                    res = rpt[b].resp;
                    if(res >= "1"){
                        document.getElementById("bentrada").innerHTML = "<table style='font-size:70%;color:#309DEB;'>\
                                                                            <tr>\
                                                                                <td>\
                                                                                    <a title='Tienes solicitudes asignadas' href='javascript:solPendiaentes()'>Asignadas</a>\
                                                                                </td>\
                                                                            </tr>\
                                                                       </table>";
                    }
                }
            }
            
            
            function solPendiaentes(){
                var usuario = document.getElementById("usuoid").value;
                $.ajax({
                    type: "POST",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/sql/datosRusu2.php",
                    data: {usuario:usuario},
                    success: tablaUsu,
                    timeout: 4000
                });
            }
            
            function pendientes(datosusu2){
                rpt = $.parseJSON(datosusu2);
                datosusu2 = $("#tablaSeg");
                var resp = "";
                resp += "<table style='height:10%;font-size: 95%;overflow:hidden;border:1px solid #d3d3d3;background:#fefefe;width:100%;margin:-5% auto 0;-moz-border-radius:5px; /* FF1+ */-webkit-border-radius:5px; /* Saf3-4 */border-radius:5px;-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);'>\
                            <tr>\
                                <td colspan='5' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Listado de Solicitudes\
                                </td>\
                            <tr>\
                            <tr>\
                                <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    \
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Codigo\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Fecha\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Servicio\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Estado Solicitud\
                                 </td>\
                             </tr>";
                for(res in rpt){
                    
                   var estad = rpt[res].dnsestado;
                   if(estad == "1"){
                       var estado = "Registrado";
                   }else if(estad == "2"){
                       estado = "Asignado";
                   }else if(estad == "3"){
                       estado = "En Tramite";
                   }else if(estad == "4"){
                       estado = "Con Respuesta";
                   }else if(estad == "5"){
                       estado = "Verificado";
                   }else if(estad == "6"){
                       estado = "Aceptado";
                   }else if(estad == "7"){
                       estado = "Rechazado";
                   }else if(estad == "2"){
                       estado = "Derogado";
                   }
                   resp += ("<tr>\
                                <td title='Ver solicitud' onclick='verDetalle("+ rpt[res].dnsoid +");' style='cursor:pointer;padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    <img src='../imagen/agregr.png' width='13' height='13' alt='agregr'/>\
                                </td>\
                                <td title='Codigo solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].dnsoid +"\
                                </td>\
                                <td title='Fecha solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].dnfecha +"\
                                </td>\
                                <td title='Servicio' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].GDPNOMBRE +"\
                                </td>\
                                <td title='Estado' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ estado +"\
                                </td>\
                             </tr>");
                }
                resp += "</table>";
                datosusu2 .text("");
                datosusu2.append(resp);
            }
            
            
            function visible(oidsol){
                var oids = oidsol;
                document.getElementById("soloid").value = oids;
                $.ajax({
                    type: "POST",
                    dataType: "json",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/sql/visible.php",
                    data: {oids:oids},
                    success: resvisible,
                    timeout: 4000
                });
             }   
             
             function resvisible(d){
                 
                 var respu = "";
                 respu = d.respuesta;
                 if(respu == "1"){
                     var oids = document.getElementById("soloid").value;
                     verDetalle(oids);
                 }else if(respu == "2"){
                     var oids = document.getElementById("soloid").value;
                     verDetalle(oids);
                 }else if(respu == "3"){
                     alertify.error("el acceso a esta solicitud no es permitido");
                 }else if(respu == "4"){
                     var oids = document.getElementById("soloid").value;
                     verDetalle(oids);
                 }
                 
             }  
             
             
             function beentrada2(){
                $.ajax({
                    type: "POST",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/sql/usuasig2.php",
                    success: tausuasig2,
                    timeout: 4000
                });
                
            }
            
            function tausuasig2(be){
                rpt = $.parseJSON(be);
                var res = "";
                
                for(b in rpt){
                    res = rpt[b].resp;
                    if(res >= "1"){
                        document.getElementById("bentrada2").innerHTML = "<table style='font-size:70%;color:#309DEB;'>\
                                                                            <tr>\
                                                                                <td>\
                                                                                    <a title='Tienes solicitudes en Tramite' href='javascript:solPendiaentes2()'>Tramites</a>\
                                                                                </td>\
                                                                            </tr>\
                                                                       </table>";
                    }
                }
            }
            
            function beentrada3(){
                $.ajax({
                    type: "POST",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/sql/usuasig3.php",
                    success: tausuasig3,
                    timeout: 4000
                });
                
            }
            
            function tausuasig3(be){
                rpt = $.parseJSON(be);
                var res = "";
                
                for(b in rpt){
                    res = rpt[b].resp;
                    if(res >= "1"){
                        document.getElementById("bentrada3").innerHTML = "<table style='font-size:70%;color:#309DEB;'>\
                                                                            <tr>\
                                                                                <td>\
                                                                                    <a title='Tienes solicitudes en Tramite por el Cliente' href='javascript:solPendiaentes3()'>Tramite por Cliente</a>\
                                                                                </td>\
                                                                            </tr>\
                                                                       </table>";
                    }
                }
            }
            
            function solPendiaentes2(){
                var usuario = document.getElementById("usuoid").value;
                $.ajax({
                    type: "POST",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/sql/datosRusu3.php",
                    data: {usuario:usuario},
                    success: tablaUsu,
                    timeout: 4000
                });
            }
            
            function solPendiaentes3(){
                var usuario = document.getElementById("usuoid").value;
                $.ajax({
                    type: "POST",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/sql/datosRusu4.php",
                    data: {usuario:usuario},
                    success: tablaUsu,
                    timeout: 4000
                });
            }
            
            function validarFiltro(){
                 if($("#fecha1").val()===""){
                 alertify.alert("Seleccione Fecha Inicial"),function(){
                    $("#fecha1").focus();
                };
                return false;
            }   if($("#fecha2").val()===""){
                 alertify.alert("Seleccione Fecha Final"),function(){
                    $("#fecha2").focus();
                };
                return false;
            }
            filtrar();
            }
            function filtrar(){
               var f1 = $("#fecha1").val();
               var f2 = $("#fecha2").val();
               var esta = $("#estados").val();
                $.ajax({
                    type: "POST",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/sql/datosFiltro.php",
                    data: {f1:f1,f2:f2,esta:esta},
                    success: datosFiltro,
                    timeout: 4000
                });
            }
            function datosFiltro(datos){
                $("#tablaSeg").text("");
                rpt = $.parseJSON(datos);
                datos = $("#tablaSeg");
                var resp = "";
                resp += "<table style='height:10%;font-size: 95%;overflow:hidden;border:1px solid #d3d3d3;background:#fefefe;width:100%;-moz-border-radius:5px; /* FF1+ */-webkit-border-radius:5px; /* Saf3-4 */border-radius:5px;-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);'>\
                            <tr>\
                                <td colspan='9' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Listado de Solicitudes\
                                </td>\
                            <tr>\
                            <tr>\
                                <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    \
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Codigo\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Fecha\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Registrado por\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Servicio\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Tipo de Necesidad\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Estado Solicitud\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                   Asignado a\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                   Mecanismo Deteccion\
                                 </td>\
                             </tr>";
                for(res in rpt){
                    
                   var estad = rpt[res].dnsestado;
                   if(estad == "1"){
                       var estado = "Registrado";
                   }else if(estad == "2"){
                       estado = "Asignado";
                   }else if(estad == "3"){
                       estado = "En Tramite";
                   }else if(estad == "4"){
                       estado = "Con Respuesta";
                   }else if(estad == "5"){
                       estado = "Verificado";
                   }else if(estad == "6"){
                       estado = "Aceptado";
                   }else if(estad == "7"){
                       estado = "Derrogado";
                   }
                   resp += ("<tr>\
                                <td title='Ver solicitud' onclick='visible("+ rpt[res].dnsoid +");' style='cursor:pointer;padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    <img src='../imagen/agregr.png' width='13' height='13' alt='agregr'/>\
                                    <input type='hidden' id='oidsol' name='txtos' value='"+ rpt[res].dnsoid +"' />\
                                </td>\
                                <td title='Codigo solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].dnsoid +"\
                                </td>\
                                <td title='Fecha solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].dnfecha +"\
                                </td>\
                                <td title='Usuario que hace la solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].nombres +"\
                                </td>\
                                <td title='Servicio' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].GDPNOMBRE +"\
                                </td>\
                                <td title='Tipo de Necesidad' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].tipnombre +"\
                                </td>\
                                <td title='Estado' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ estado +"\
                                </td>\
                        <td title='Usuario Asignado' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].responsable +"\
                                </td>\
                                <td title='Estado' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].mecnombre +"\
                                </td>\
                             </tr>");
                }
                resp += "</table>";
                datos.text("");
                datos.append(resp);
            }
            
                function buscar(){
                document.getElementById("busqueda").innerHTML='<table>\
                                                                    <tr>\
                                                                        <td>\
                                                                            <input type="text" name="txtFecha1" value="" id="fecha1" placeholder="Fecha Inicial"/>\
                                                                        </td>\
                                                                        <td>\
                                                                            <input type="text" name="txtFecha2" value="" id="fecha2" placeholder="Fecha Final"/>\
                                                                        </td>\
                                                                        <td>\
                                                                            <input type="button" value="Buscar" class="white" onclick="validarFiltro();"/>\
                                                                        </td>\
                                                                        <td>\
                                                                            <input type="button" value="Cancelar" class="white" onclick="document.location.reload();"/>\
                                                                        </td>\
                                                                    </tr>\
                                                                </table>';
            calendario();calendario2();
            }
            
            
            function cargarObs(){
                
                var tc = 3;
                
                $.ajax({
                    type: "POST",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/crudObservacion.php",
                    data: {tc:tc},
                    success: mostrarObs,
                    timeout: 4000
                });
                
            }
            
            function mostrarObs(datos){
                
                rpt = $.parseJSON(datos);
                
                var cant = 0;
                var estado = 0;
                
                for(r in rpt){
                    cant = rpt[r].cant;
                    
                    if(cant != 0){
                        
                        estado = rpt[r].dnsestado;
                        
                        if(estado == 1){
                            document.getElementById("atencion1").innerHTML = '<img onclick="soliObs(1);" title="Tienes observaciones pendientes en solicitudes registradas" src="../imagen/atencion.png" width="20" height="20" alt="atencion"/>';
                        }else if(estado == 2){
                            document.getElementById("atencion2").innerHTML = '<img onclick="soliObs(2);" title="Tienes observaciones pendientes en solicitudes asignadas" src="../imagen/atencion.png" width="20" height="20" alt="atencion"/>';
                        }else if(estado == 3){
                            document.getElementById("atencion3").innerHTML = '<img onclick="soliObs(3);" title="Tienes observaciones pendientes en solicitudes en tramite" src="../imagen/atencion.png" width="20" height="20" alt="atencion"/>';
                        }else if(estado == 4){
                            document.getElementById("atencion4").innerHTML = '<img onclick="soliObs(4);" title="Tienes observaciones pendientes en solicitudes con respuesta" src="../imagen/atencion.png" width="20" height="20" alt="atencion"/>';
                        }else if(estado == 5){
                            document.getElementById("atencion5").innerHTML = '<img onclick="soliObs(5);" title="Tienes observaciones pendientes en solicitudes verificadas" src="../imagen/atencion.png" width="20" height="20" alt="atencion"/>';
                        }else if(estado == 6){
                            document.getElementById("atencion6").innerHTML = '<img onclick="soliObs(6);" title="Tienes observaciones pendientes en solicitudes aceptadas" src="../imagen/atencion.png" width="20" height="20" alt="atencion"/>';
                        }else if(estado == 7){
                            document.getElementById("atencion7").innerHTML = '<img onclick="soliObs(7);" title="Tienes observaciones pendientes en solicitudes derrogadas" src="../imagen/atencion.png" width="20" height="20" alt="atencion"/>';
                        }
                        
                    }
                    
                }
                
            }
            
            
            function soliObs(posi){
            
                var tc = 4;
                
                $.ajax({
                    type: "POST",
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    url: "../../DeteccionN/controlador/crudObservacion.php",
                    data: {tc:tc,estado:posi},
                    success: mostrarObs2
                    //timeout: 4000
                });
                
            }
            
            function mostrarObs2(datos){
                
                rpt = $.parseJSON(datos);
                
                datos = $("#tablaSeg");
                var resp = "";
                resp += "<table style='height:10%;font-size: 95%;overflow:hidden;border:1px solid #d3d3d3;background:#fefefe;width:100%;-moz-border-radius:5px; /* FF1+ */-webkit-border-radius:5px; /* Saf3-4 */border-radius:5px;-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);'>\
                            <tr>\
                                <td colspan='9' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Listado de Solicitudes\
                                </td>\
                            <tr>\
                            <tr>\
                                <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    \
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Codigo\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Fecha\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Registrado por\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Servicio\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Tipo de Necesidad\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                    Estado Solicitud\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                   Asignado a\
                                 </td>\
                                 <td align='center' style='border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe)); background:#e8eaeb;'>\
                                   Mecanismo Deteccion\
                                 </td>\
                             </tr>";
                for(res in rpt){
                    
                   var estad = rpt[res].dnsestado;
                   if(estad == "1"){
                       var estado = "Registrado";
                   }else if(estad == "2"){
                       estado = "Asignado";
                   }else if(estad == "3"){
                       estado = "En Tramite";
                   }else if(estad == "4"){
                       estado = "Con Respuesta";
                   }else if(estad == "5"){
                       estado = "Verificado";
                   }else if(estad == "6"){
                       estado = "Aceptado";
                   }else if(estad == "7"){
                       estado = "Derrogado";
                   }
                   resp += ("<tr>\
                                <td title='Ver solicitud' onclick='visible("+ rpt[res].dnsoid +");' style='cursor:pointer;padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    <img src='../imagen/agregr.png' width='13' height='13' alt='agregr'/>\
                                    <input type='hidden' id='oidsol' name='txtos' value='"+ rpt[res].dnsoid +"' />\
                                </td>\
                                <td title='Codigo solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].dnsoid +"\
                                </td>\
                                <td title='Fecha solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].dnfecha +"\
                                </td>\
                                <td title='Usuario que hace la solicitud' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].nombres +"\
                                </td>\
                                <td title='Servicio' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].GDPNOMBRE +"\
                                </td>\
                                <td title='Tipo de Necesidad' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].tipnombre +"\
                                </td>\
                                <td title='Estado' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ estado +"\
                                </td>\
                        <td title='Usuario Asignado' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].responsable +"\
                                </td>\
                                <td title='Estado' style='padding:10px 10px 10px; text-align:center;border-top:1px solid #e0e0e0; border-right:1px solid #e0e0e0;background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9), to(#fefefe));'>\
                                    "+ rpt[res].mecnombre +"\
                                </td>\
                             </tr>");
                }
                resp += "</table>";
                datos.text("");
                datos.append(resp);
                
            }
            
        </script>
    </head>
    <body onload="regisusu();beentrada();beentrada2();beentrada3();cargarObs();">
        <section class="container">
            <div class="formulario">
                <table id="tseguimiento" >
                    <tr>
                        <td style="width:12%">
                            <table align="left" id="tseguimiento2">
                                <tr>
                                    <td>
                                        <h1>ESTADOS</h1>
                                    </td>
                                </tr>
                                <tr id="filas">
                                    <td>
                                        <table>
                                            <tr>
                                                <td><label style="font-size: 60%" onclick="regis(document.getElementById('registrado').value);">Registrado</label><input type="hidden" name="" value="1" id="registrado" />
                                                </td>
                                                <td>
                                                    <div id='atencion1'></div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr id="filas">
                                    <td>
                                       <table>
                                            <tr>
                                                <td><label style="font-size: 60%" onclick="regis(document.getElementById('asignado').value);">Asignados</label><input type="hidden" name="" value="2" id="asignado"/>
                                                </td>
                                                <td>
                                                    <div id='atencion2'></div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr id="filas">
                                    <td>
                                        <table>
                                            <tr>
                                                <td><label style="font-size: 60%" onclick="regis(document.getElementById('tramite').value);">En Tramites</label><input type="hidden" name="" value="3" id="tramite"/>
                                                </td>
                                                <td>
                                                    <div id='atencion3'></div>
                                                </td>
                                            </tr>
                                        </table>  
                                    </td>
                                </tr>
                                <tr id="filas">
                                    <td>
                                        <table>
                                            <tr>
                                                <td><label style="font-size: 60%" onclick="regis(document.getElementById('tramiteu').value);">En Tramites por Cliente</label><input type="hidden" name="" value="8" id="tramiteu"/>
                                                </td>
                                                <td>
                                                    <div id='atencion8'></div>
                                                </td>
                                            </tr>
                                        </table>  
                                    </td>
                                </tr>
                                <tr id="filas">
                                    <td>
                                       <table>
                                            <tr>
                                                <td><label style="font-size: 60%" onclick="regis(document.getElementById('crespues').value);">Con Respuestas</label><input type="hidden" name="" value="4" id="crespues"/>
                                                </td>
                                                <td>
                                                    <div id='atencion4'></div>
                                                </td>
                                            </tr>
                                        </table> 
                                    </td>
                                </tr>
                                <tr id="filas">
                                    <td>
                                        <table>
                                            <tr>
                                                <td><label style="font-size: 60%" onclick="regis(document.getElementById('verificado').value);">Verificados</label><input type="hidden" name="" value="5" id="verificado"/>
                                                </td>
                                                <td>
                                                    <div id='atencion5'></div>
                                                </td>
                                            </tr>
                                        </table>  
                                    </td>
                                </tr>
                                <tr id="filas" >
                                    <td>
                                        <table>
                                            <tr>
                                                <td><label style="font-size: 60%" onclick="regis(document.getElementById('aceptado').value);">Aceptados</label><input type="hidden" name="" value="6" id="aceptado"/>
                                                </td>
                                                <td>
                                                    <div id='atencion6'></div>
                                                </td>
                                            </tr>
                                        </table>  
                                    </td>
                                </tr>
                                <tr id="filas">
                                    <td>
                                        <table>
                                            <tr>
                                                <td><label style="font-size: 60%" onclick="regis(document.getElementById('derrogado').value);">Derrogadoss</label><input type="hidden" name="" value="7" id="derrogado"/>
                                                </td>
                                                <td>
                                                    <div id='atencion7'></div>
                                                </td>
                                            </tr>
                                        </table>  
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table id="tseguimiento3">
                                <tr>
                                    <td>
                                        <h1>LISTADO SOLICITUDES DETECCION DE NECESIDADES GENERADAS POR EL CLIENTE INTERNO</h1>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5">
                                        <div id="tablaSeg">

                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="left">
                            <table>
                                <tr>
                                    <td rowspan="2">
                                        <div id="busqueda"></div>
                                    </td>
                                    <td>
                                        <div id="bentrada"></div>
                                    </td>
                                    <td colspan="2" align="right">
                                        <div id="bentrada2" >
                                        </div>
                                    </td>
                                    <td colspan="2" align="right">
                                        <div id="bentrada3" >
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <!--oidusuario-->
                <input type="hidden" name="txtOidusu" id="usuoid" value="<?php echo$_SESSION['usuario'] ?>" />
                <!--ois solicitud-->
                <input type="hidden" id="soloid" name="txtOids" value="" />
                <input type="hidden" id="estados" name="txtestados" value="" />
            </div>
        </section>
    </body>
</html>